﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.InterceptionExtension;
namespace iTelluro.Explorer.Infrastructure.CrossCutting.NetFramework.Logging
{
    
    public class LoggingHandlerAttribute : HandlerAttribute
    {
        private readonly int order;
        public LoggingHandlerAttribute(int order)
        {
            this.order = order;
        }
        public override ICallHandler CreateHandler(IUnityContainer container)
        {
            return new LoggingHandler()
            {
                Order = order
            };
        }
    }
}
